package com.kube.design.proxy.cglibproxy;

import com.kube.design.proxy.interfaceproxy.UserDao;

/**
 * @author q.zhangr
 * @version 1.0.0
 * @date 2020/7/20
 */
public class CglibProxyTest {


    public static void main(String[] args) {

        //目标对象
        UserDao target = new UserDao();

        //代理对象
        UserDao proxy = (UserDao) new CglibProxyFactory(target).getProxyInstance();

        //执行代理对象的方法
        proxy.save();
    }


}
